package oopwork;

class Circle{

    private double r;
    private static final double PI=3.1415926;

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public double Perimeter(){
        return r*2*PI ;
    }

    public double Area(){
        return PI*r*r ;
    }


}
public class MyCircle {
    public static void main(String[] args) {
        Circle cl1 = new Circle();
        cl1.setR(5);
        double area1 = cl1.Area();
        double perimeter1 =cl1.Perimeter();
        System.out.println("Area is "+area1+".Perimeter is "+perimeter1);

    }
}
